ss = input()
N = int(1e5 + 5) 
a = [0 for i in range(0, N)]
L = 1
R = 0
for i in ss:
	R = R + 1
	a[R] = i
while(L <= R) :
	print(a[L])
	L = L + 1
	R = R + 1
	a[R] = a[L]
	L = L + 1
